package com.exchange.controller.app.other;

import com.exchange.controller.BaseController;
import com.jfinal.aop.Inject;
import com.jfinal.kit.Ret;
import cn.hutool.core.date.DateUtil;

public class OtherController extends BaseController {
	
	@Inject
	OtherService service;
	
	/**
     * app版本信息
     * @return
     */
    public void version(){
    	Ret ret = service.version();
    	renderJson(ret);
    }
	
    /**
     * 获取服务器时间戳
     */
    public void timestamp() {
    	Ret ret = Ret.ok("timestamp", DateUtil.currentSeconds());
    	renderJson(ret);
    }
    
	
}
